#include "usrinfo.h"

#include <QDebug>

UsrInfo::UsrInfo()
{
    m_id.clear();
    m_name.clear();
    m_pswd.clear();
    m_role.clear();
}

UsrInfo::UsrInfo(const QString &id, const QString &name,
           const QString &pswd, const QString &role)
{
    m_id = id;
    m_name = name;
    m_pswd = pswd;
    m_role = role;
}

void UsrInfo::display(void) const
{
    qDebug()  << "UsrInfo: "<< m_id << ", " <<
                 m_name << ", " << m_pswd << ", " << m_role;
}

void UsrInfo::setID(const QString &id)
{
    m_id = id;
}

void UsrInfo::setName(const QString &name)
{
    m_name = name;
}

void UsrInfo::setPswd(const QString &pswd)
{
    m_pswd = pswd;
}

void UsrInfo::setRole(const QString &role)
{
    m_role = role;
}

const QString &UsrInfo::getID() const
{
    return m_id;
}
const QString &UsrInfo::getName() const
{
    return m_name;
}
const QString &UsrInfo::getPswd() const
{
    return m_pswd;
}
const QString &UsrInfo::getRole() const
{
    return m_role;
}


